@import './variable.less';
:root {
    --el-font-size-base: 15px;
}

* {
    margin: 0;
    outline: none;
    border: none;
    padding: 0;

    list-style: none;
    background-color: transparent;
    text-decoration: none;
    letter-spacing: 0;
    font-family: 'Roboto', sans-serif;

    box-sizing: border-box;
}

body {
    margin: 0;
}

.lms-page-container {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

.container-fluid {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
    max-width: 1240px;
}

.pic {
    font-size: 0;
    line-height: 0;

    .ele {
        width: 100%;
    }
}

main {
    .el-button:not(.is-link):not(.is-circle) {
        color: #fff;
        font-size: 12px;
    }

    .el-dialog {
        padding: 0;
        background-color: #fff;
        max-height: 90vh;
        overflow: hidden;

        display: flex;
        flex-direction: column;

        --el-dialog-margin-top: 3vh;
        --el-dialog-border-radius: 2px;

        .el-button:not(.is-link) {
            color: #fff;
            font-size: 12px;
        }

        .el-dialog__header {
            border-top: solid 2px #f06423;
            padding: 8px 15px;
            background-color: #27323a;
            flex-shrink: 0;

            .el-dialog__title {
                color: #fff;
                font-size: 22px;
            }
        }

        .el-dialog__body {
            padding: 15px;
            overflow-y: auto;
            flex-grow: 1;
        }

        .el-dialog__footer {
            border-top: 1px solid rgba(0, 0, 0, 0.05);
            padding: 6px 15px;
            background-color: rgba(0, 0, 0, 0.05);
            background-image: url(@/assets/img/strip1_black8.svg);
            flex-shrink: 0;
        }
    }
}

.card-box {
    margin-bottom: 24px;
    border-radius: 2px;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid #e3e3e3;
    background-color: #fcfcfc;
    position: relative;
    flex-shrink: 0;

    &::before {
        content: '';
        width: 38.2%;
        height: 3px;
        background-color: #f06423;

        position: absolute;
        top: -3px;
        right: 0;
    }

    .card-title {
        border-bottom: 1px solid #e3e3e3;
        padding: 8px 15px;
        background-color: #f9f9f9;
        background-image: url(@/assets/img/strip2_black8.svg);
        font-size: 18px;
        line-height: 1;
        font-weight: 400;

        display: flex;
        align-items: center;

        .el-icon {
            margin-right: 10px;
            line-height: 1;
        }
    }

    .card-text {
        padding: 20px 15px;
    }
}

.el-popper.el-dropdown__popper {
    --el-dropdown-menuItem-hover-fill: rgba(240, 100, 35, 0.05);
    --el-dropdown-menuItem-hover-color: #f06423;
}

.el-loading-mask {
    z-index: 99;
}

.el-table {
    font-size: 12px;
    width: 100%;

    --el-table-header-text-color: #000;
    --el-table-text-color: #212529;

    a {
        color: #000;

        &:hover {
            color: #f06423;
        }
    }
}

.user-box {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    .user-picture {
        width: 40px;
        height: 40px;
        background-color: #e6e5e5;

        display: flex;
        align-items: center;
        justify-content: center;
    }

    .user-info {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-grow: 1;

        .fullname {
            font-size: 12px;
            color: #262626;
            line-height: 1.25;
        }

        .tools-comms {
            display: flex;
            gap: 3px;

            .el-icon {
                cursor: pointer;
            }
        }
    }
}

.activity-list {
    .list {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;

        .activity-item {
            border: 1px solid #eceeef;
            border-top: 6px solid transparent;
            width: calc(33.33% - 10px);
            // background: #f9f9f9 no-repeat center 80% / 70px auto;
            background-color: #f9f9f9;
            transition: background-size 0.5s ease-in-out;
            cursor: pointer;
            position: relative;
            @media screen and (max-width: @lPhone) {
                width: calc(50% - 10px);
            }
            &::before {
                content: '';
                display: block;
                padding-top: 70%;
            }

            &.video-type {
                border-top-color: #2171d4;
            }
            &.folder-type {
                border-top-color: #ffd700;
            }
            &.quiz-type {
                border-top-color: #ffa500;
            }
            &.report-type {
                border-top-color: #ff4500;
            }
            &.file-type {
                border-top-color: #e54e2b;
            }

            &:hover {
                .item-box {
                    img {
                        width: 90px;
                    }
                }
            }

            .item-box {
                position: absolute;
                top: 0;
                bottom: 0;
                right: 0;
                left: 0;
                z-index: 1;
                padding: 5px 15px;

                .type-complete {
                    display: flex;
                    align-items: center;
                    justify-content: space-between;

                    .activity-type {
                        font-size: 14px;
                        color: #808080;
                        line-height: 2;
                        position: relative;
                        z-index: 1;
                    }
                }

                .activity-tit {
                    font-size: 20px;
                    color: #565656;
                    line-height: 1.6;
                    font-weight: normal;
                    background-image: linear-gradient(to bottom, rgba(249, 249, 249, 1) 85%, rgba(249, 249, 249, 0));
                    position: relative;
                    z-index: 1;
                    .vertical(2);
                    @media screen and (max-width: @lPhone) {
                        font-size: 18px;
                        line-height: 1.3;
                    }
                }

                img {
                    width: 70px;
                    transition: width 0.35s ease-in-out;

                    position: absolute;
                    top: 67%;
                    left: 50%;
                    transform: translate(-50%, -50%);
                }

                &.disabled {
                    cursor: auto;

                    &::after {
                        content: '';
                        position: absolute;
                        top: 0;
                        bottom: 0;
                        right: 0;
                        left: 0;
                        background-color: rgba(0, 0, 0, 0.3);
                        z-index: 2;
                    }
                }
            }
        }
    }
}

.over-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pagination-box {
    margin-top: 15px;
    display: flex;
    justify-content: flex-end;

    .el-pagination {
        .el-pager {
            li {
                cursor: pointer;

                &:hover {
                    color: #f06423;
                }

                &.is-active {
                    background-color: #f06423 !important;
                    color: #fff;
                }
            }
        }

        button {
            &.is-active,
            &:hover {
                color: #f06423;
            }
        }
    }
}


/* 针对手机端（屏幕宽度 < 768px）的样式 */
@media screen and (max-width: @lPhone) {
  .mobile-dialog {
    --el-dialog-width: 95% !important;  /* 覆盖默认宽度变量 */
    max-width: 95% !important;  /* 限制最大宽度 */
  }
}